package system.communication;

import system.ui.Gui;

/**
 * This class handles Hand Control messages diverted in from the Monitor,
 * and assists the Gui in displaying them.  This code is intended for the 
 * B requiremnt of Cycle 2, so it is incomplete.
 * 
 * @author Elliot Cash
 * @version Cycle 1 - complete
 */
public class HandControlMessageNotifier extends Thread
{
    /**
     * Constructor for Objects of class HandControlMessageNotifier.
     */
    public HandControlMessageNotifier()
    {
    }

    /**
     * Starts the message notifier.
     */
    @Override
    public void run()
    {
        while(!ConcreteMonitor.handControlMessages.isEmpty())
        {
            Gui.getInstance().postHandControlStatus(ConcreteMonitor.getInstance().handControlMessages.removeLast());
        }
    }

    /**
     * Stops the notifier.
     */
    public void end()
    {   
    }
}